{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>sidebar</title>

<body>
    <div class="left side-menu">
        <button type="button" class="button-menu-mobile button-menu-mobile-topbar open-left waves-effect">
            <i class="ion-close"></i>
        </button>
        <!-- LOGO -->
        <div class="topbar-left">
            <div class="text-center">
            </div>
        </div>
        <div class="sidebar-inner slimscrollleft">
            <div class="user-details">
                <div class="text-center">
                    <img src="{% static 'visites/images/icon.png' %}" alt="" class="rounded-circle">
                </div>
                <div class="user-info">
                    <h4 id="nameShow" class="font-16">{{ sessionName }}</h4>
                </div>
            </div>
            <div id="sidebar-menu">
                <ul>
                    <li>
                        <a href="/index/index" class="waves-effect nav-home">
                            <i class="iconfont icon-index"></i>
                            <span> 首页</span>
                        </a>
                    </li>
                    <li>
                        <a href="/order/orderlist" class="waves-effect nav-order"><i class="iconfont icon-dingdanguanli"></i><span> 订单管理 </span></a>
                    </li>
                    <li>
                        <a href="/user/userlist" class="waves-effect nav-user"><i class="iconfont icon-yonghu"></i><span> 用户管理 </span></a>
                    </li>
                    <li>
                        <a href="/delivery/listCommunity" class="waves-effect nav-delivery"><i class="iconfont icon-peisong"></i><span> 配送管理</span></a>
                    </li>
                    <li>
                        <a href="/cookbook/menu" class="waves-effect nav-menu"><i class="iconfont icon-shouye-caipu"></i><span> 菜谱管理</span></a>
                    </li>
                </ul>
            </div>
            <div class="clearfix"></div>
        </div>
        <!-- end sidebarinner -->
    </div>
<script>
    var name = sessionStorage.getItem("name");
    if (window.location.pathname != "/index/index") {
        document.getElementById("nameShow").innerHTML = name;
    }
</script>
</body>
</html>